package com.java8;

import java.util.LinkedList;
import java.util.List;

/**
 * <p>Description: [类功能描述]</p>
 * Created on 2020/12/31
 *
 * @author <a href="mailto: 819712047@qq.com">谢振东 </a>
 * @version 1.0
 */
public class test3 {

    public static void main(String[] args) {
        List<Integer> list = new LinkedList<Integer>();

        int sum = 0;
        for (int i = 0; i < list.size(); i++) {
            sum += list.get(i);
        }
        System.out.println(sum);
    }
}
